<template>
    <image-detail :item="detail"></image-detail>
</template>

<script>
    import imageDetail from '@/componets/image-detail';
    import home from '@/api/travel/home';

    export default {
        data() {
            return {
                detail: {}
            }
        },
        components: {
            imageDetail
        },
        methods: {
            detailById(id, flag) {
                home.getDetailById(id, flag).then(response => {
                    this.detail = response.data.data;
                });
            }
        },
        created() {
            this.detailById(this.$route.query.id, 'Y');
        }
    }
</script>

<style scoped>
    @import "../../assets/travel/css/swiper.min.css";
</style>